package cii_lib;

class CCII_HARDWARE{
  public long Read(long addr) {return(Access.HardwareRead(addr));};
  public void Write(long addr, long data) {Access.HardwareWrite(addr, data);};
  public CCII_INTERFACE Access=null;
};

public class CIIlib {

  public enum TABLE_TYPE {COMP, IPAR, LPAR, HPAR, SPAR, VPAR, MPAR, AREA, WORD, BITS, GLUE};

  public enum TABLE_ACCESS {NA, WO, RO, RW, IR, RC};
  
  public static String PathCompName(CCII_COMPONENT comp){
    StringBuffer Path = new StringBuffer("");
    while (true){
      Path.insert(0, comp.Name());
      if((comp=comp.Parent())==null) break;
      Path.insert(0, '.');
    }
    return(Path.toString());
  }

}

